import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
var _excluded = ["pullLoading", "logContent", "tipsMessage", "title", "modalVisible"];

var _dec, _class;

import React from 'react';
import { Form, Spin, Modal } from 'antd';
var HandleMsgDrawer = (_dec = Form.create({
  fieldNameProp: null
}), _dec(_class = /*#__PURE__*/function (_React$PureComponent) {
  _inherits(HandleMsgDrawer, _React$PureComponent);

  var _super = _createSuper(HandleMsgDrawer);

  function HandleMsgDrawer() {
    _classCallCheck(this, HandleMsgDrawer);

    return _super.apply(this, arguments);
  }

  _createClass(HandleMsgDrawer, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          pullLoading = _this$props.pullLoading,
          logContent = _this$props.logContent,
          tipsMessage = _this$props.tipsMessage,
          title = _this$props.title,
          modalVisible = _this$props.modalVisible,
          other = _objectWithoutProperties(_this$props, _excluded);

      return /*#__PURE__*/React.createElement(Modal, Object.assign({
        destroyOnClose: true,
        title: title,
        wrapClassName: "ant-modal-sidebar-right",
        transitionName: "move-right",
        visible: modalVisible
      }, other), /*#__PURE__*/React.createElement("p", {
        dangerouslySetInnerHTML: {
          __html: logContent
        }
      }), /*#__PURE__*/React.createElement("div", {
        dangerouslySetInnerHTML: {
          __html: tipsMessage
        }
      }), /*#__PURE__*/React.createElement("div", {
        style: {
          textAlign: 'center'
        }
      }, /*#__PURE__*/React.createElement(Spin, {
        spinning: pullLoading
      })));
    }
  }]);

  return HandleMsgDrawer;
}(React.PureComponent)) || _class);
export { HandleMsgDrawer as default };